<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ page import="be.ac.ua.ecampus.uacmat.entity.*" %>
<%@ page import="be.ac.ua.ecampus.uacmat.*" %>
<!DOCTYPE html>

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Course Material - Synchronization</title>
	<link rel="stylesheet" type="text/css" href="style.css"/>
</head>

<body>
<header>
	<h1>Course Material - Synchronize data</h1>
</header>

<div id="body-wrapper">

	<h2>Synchronize</h2>
	<%
	boolean isSynched = false; 
	if(request.getAttribute("synchronization") != null) { 
		isSynched = (Boolean) request.getAttribute("synchronization");
	}
	if(isSynched) { %>
		<p style="text-color: #008000">Synchronization was successful!</p>
	<% } %>
	<form name="synchform" action="synchronize" method="POST">
		<input type="submit" name="submit" id="submit" value="Synchronize"> <br>
	</form>
</div>
</body>
</html>